body {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar img {
  --scale: 1;
  width: 130px;
  height: 130px;
  cursor: pointer;
  transition: all 0.5s;
  padding-top: 65px;
  transform: scale(var(--scale));
  outline: 3px solid #ff5555;
  outline-offset: calc((130px / var(--scale) - 130px) / 2 - 3px);
  border-radius: 0 0 999px 999px;
  background: radial-gradient(circle closest-side, #0aa calc(99% - 3px), #ff5555 calc(100% - 3px), #ff5555 99%, transparent 100%) content-box no-repeat center/calc(100% / var(--scale)) 100%;
  -webkit-mask: linear-gradient(#000 0 0) no-repeat center calc(0px - ((130px / var(--scale) - 130px) / 2 - 3px) + 3px)/calc(100% / var(--scale) - 7.5px) 50%, radial-gradient(circle closest-side, #000 99%, transparent 100%) content-box no-repeat center/calc(100% / var(--scale)) 100%;
          mask: linear-gradient(#000 0 0) no-repeat center calc(0px - ((130px / var(--scale) - 130px) / 2 - 3px) + 3px)/calc(100% / var(--scale) - 7.5px) 50%, radial-gradient(circle closest-side, #000 99%, transparent 100%) content-box no-repeat center/calc(100% / var(--scale)) 100%;
}
.avatar img:hover {
  --scale: 1.35;
}

.square img {
  --s: min(50vw, 260px);
  width: var(--s);
  aspect-ratio: 1;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: top;
     object-position: top;
  box-sizing: border-box;
  padding: calc(var(--s) / 4) calc(var(--s) / 8) 0;
  background: conic-gradient(from 135deg at 50% 15%, #e0dee1, #28a6b5 25%, rgba(0, 0, 0, 0) 0);
  -webkit-clip-path: polygon(-50% 0, 150% 0, 50% 100%);
          clip-path: polygon(-50% 0, 150% 0, 50% 100%);
  cursor: pointer;
  transition: padding 0.5s;
}
.square img:hover {
  padding: 0;
}

.shadow {
  width: 100px;
  height: 100px;
  background-color: red;
  box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}